cmake_minimum_required(VERSION 3.19)
project(cpp_ope)

set(CMAKE_CXX_STANDARD 14)


# include_directories 包含头文件的文件夹；
# link_directories 包含编译后的静态链接文件的文件夹
# link_libraries 具体的编译后的静态链接文件；mac 是 .dylib linux 是 .so

include_directories(/usr/local/opt/openssl@1.1/include)
link_directories(/usr/local/opt/openssl@1.1/lib)
link_libraries(/usr/local/opt/openssl@1.1/lib/libssl.1.1.dylib)
link_libraries(/usr/local/opt/openssl@1.1/lib/libcrypto.1.1.dylib)

include_directories(/usr/local/include)
link_directories(/usr/local/lib/)
link_libraries(/usr/local/lib/libgtest.a)


add_executable(cpp_ope main.cpp ValueRange.cpp ValueRange.h OPE.cpp OPE.h Hgd.cpp Hgd.h Coins.cpp Coins.h)


#target_link_libraries(cpp_ope "/usr/local/lib/libgmp.a")
#target_link_libraries(cpp_ope "/usr/local/lib/libgmpxx.a")